{block name="title" prepend}Свести ресурсы{/block}
{block name="content"}
<form action="game.php?page=reduceresources&amp;mode=reduce" method="post" id="form">
	<table style="width:768px !important">
		<tr style="height:20px;">
			<th colspan="5">Выберите планеты для отправки ресурсов</th>
		</tr>
	{if $ACSList}
		{foreach $ACSList as $ACSRow}
		<tr style="height:20px;">
			<td>
            	{$ACSRow.name}<br />
                {if $ACSRow.time_fleet != 0 }
                	<span style="color:#09F;">Время: {$ACSRow.time_fleet|time}</span>
                {/if}
            </td>
            <td>
                [{$ACSRow.galaxy}:{$ACSRow.system}:{$ACSRow.planet}]
            </td>      
            <td style="text-align:left;">
                Металл: {$ACSRow.metal|number}<br />
                Кристалл: {$ACSRow.crystal|number}<br />
                Дейтерий: {$ACSRow.deuterium|number}<br />
            </td>
            <td style="text-align:left;">
               	{if $ACSRow.small_count != 0 }	{$LNG.tech.202}: {$ACSRow.small_count|number}<br />{/if}
               	{if $ACSRow.big_count != 0 }	{$LNG.tech.203}: {$ACSRow.big_count|number}<br />{/if}
               	{if $ACSRow.ev_count != 0 }		{$LNG.tech.217}: {$ACSRow.ev_count|number}{/if}
               	{if $ACSRow.small_count == 0 && $ACSRow.big_count == 0 && $ACSRow.ev_count == 0 }
               		<span style="color:#F00;">Нет подходящего флота</span>
               	{/if}
                {if $ACSRow.deuterium < $ACSRow.consumption_fleet && $ACSRow.consumption_fleet !=0}	
                	<span style="color:#3C0;">Недостаточно $LNG.tech.903</span>
                {/if}
                {if $ACSRow.sumcapacity < $ACSRow.consumption_fleet && $ACSRow.consumption_fleet !=0 && $ACSRow.sumcapacity !=0}	
                	<span style="color:#FC0;">Недостаточная грузоподъёмность</span>
                {/if}
            </td>
             <td>
                <input name="palanets[]" type="checkbox" value="{$ACSRow.id}"
                {if ($ACSRow.small_count == 0 && $ACSRow.big_count == 0 && $ACSRow.ev_count == 0) || ($ACSRow.deuterium < $ACSRow.consumption_fleet && $ACSRow.consumption_fleet !=0) || ($ACSRow.sumcapacity < $ACSRow.consumption_fleet && $ACSRow.consumption_fleet !=0 && $ACSRow.sumcapacity !=0) } disabled {/if}/>
            </td>
		</tr>
		{/foreach}
        <tr style="height:20px;">
			<td colspan="5"><input type="submit" value="{$LNG.fl_continue}"></td>
		</tr>
    {else}
    	<tr style="height:20px;">
			<td colspan="5">-</td>
		</tr>
    {/if}
	</table>
</form>
{/block}